/*    
 * Copyright (c) 2013 ISoftStone, Inc.
 * All right reserved.
 *
 * 文件名：      IOrderDao.java
 * 作者:     Jacky Wang
 * 创建日期： 2013-8-6 上午10:44:48
 * 版本：           
 *
 */
package com.isoftstone.industry.aaa.core.dao.assist;

import java.sql.Timestamp;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.isoftstone.industry.persistance.bean.Order;
import com.isoftstone.modules.core.persistence.IGenericDao;

/**
 *
 * @author jacky
 */
public interface OrderDao extends IGenericDao<Order, String>
{
	@Modifying
	@Query("update Order x set x.ordersState=:state, x.payTime=:payTime where x.id=:id")
	void markPaid(@Param("id")String id, @Param("state") Integer state, @Param("payTime") Timestamp payTime);
}
